-
-
Notifications
You must be signed in to change notification settings - Fork 750
Add option to set HA as launcher #5348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ef632b8
to
1712549
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm personally still not convinced this feature needs to be added to the companion app.
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt
Fixed
Show fixed
Hide fixed
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt
Fixed
Show fixed
Hide fixed
.../src/main/kotlin/io/homeassistant/companion/android/common/data/prefs/PrefsRepositoryImpl.kt
Fixed
Show fixed
Hide fixed
.../src/main/kotlin/io/homeassistant/companion/android/common/data/prefs/PrefsRepositoryImpl.kt
Fixed
Show fixed
Hide fixed
e5411e8
to
eed5c27
Compare
Here's an updated video of the feature: I'm not too confident about the icons and I'm open to suggestions :) |
59b0721
to
8c153fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good I've played with it a bit. The only thing that is a bit weird is that when your back stack is empty when you press back it reloads the app. We could capture this in the WebViewActivity, but at the same time it's kinda nice when we are in launcher mode to be able to refresh the app.
I'll let @jpelgrom the final word on the PR 👍🏻
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Launcher" is obvious to me as someone who has used Android for a long time, but maybe not for everyone. The system settings app now seem to call it "home app", should that be mentioned somewhere or used ("launcher/home app" in the description)?
Note there is a merge conflict.
I'll let @jpelgrom the final word on the PR 👍🏻
No change in my thoughts for whether or not it fits (I think for the x% that may want behavior like this, 90% are served by app pinning). However, it now has enough safeguards that it shouldn't cause major issues, and I won't block it.
8c153fc
to
3601d58
Compare
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt
Fixed
Show fixed
Hide fixed
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt
Fixed
Show fixed
Hide fixed
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt
Fixed
Show fixed
Hide fixed
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt
Fixed
Show fixed
Hide fixed
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt
Fixed
Show fixed
Hide fixed
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt
Fixed
Show fixed
Hide fixed
3601d58
to
59ab41c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings look good to me now, we can always tweak later based on feedback.
app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Joris Pelgröm <[email protected]>
Thanks @fpetrovski for your contribution 💪🏻 |
Summary
This PR is related to #5023 where it was discussed to allow HA Companion app to become a launcher.
A new option was added to the preference settings, under "Other Settings" Preference Category.
Checklist
Screenshots
Any other notes